SET(TESTSERVER_SRC main.cc)

SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0 -Wall -Werror")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -Wall -Werror")

ADD_DEFINITIONS(-D_GLIBCXX_USE_NANOSLEEP -D_GLIBCXX_USE_SCHED_YIELD)

INCLUDE_DIRECTORIES(../)

# LINK_DIRECTORIES()
ADD_EXECUTABLE(testserver ${TESTSERVER_SRC})
ADD_DEPENDENCIES(testserver mmosdk)
TARGET_LINK_LIBRARIES(testserver mmosdk stdc++)
